<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 800px;
            height: 200px;
            /*背景渐变必须添加浏览器私有前缀*/
            /*background: -webkit-linear-gradient(left,red,blue);*/
            background: -webkit-linear-gradient(45deg,red,blue);
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>
